x11: Pass the right surface to the dnd filter
authorMatthias Clasen <mclasen@redhat.com>
Tue, 18 Feb 2020 05:19:26 +0000 (00:19 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Feb 2020 05:47:52 +0000 (00:47 -0500)
gdk/x11/gdkeventsource.c

index 9c172b51f4ba37540f0158bb4a227706eb2414e9..90bf2c326b1c16982264062966f6abfb48e7f395 100644 (file)
@@ -259,7 +259,7 @@ gdk_event_source_translate_event (GdkX11Display  *x11_display,
     result = _gdk_wm_protocols_filter (xevent, filter_surface, &event, NULL);
 
   if (result == GDK_FILTER_CONTINUE &&
-      gdk_x11_drop_filter (event->any.surface, xevent))
+      gdk_x11_drop_filter (filter_surface, xevent))
     result = GDK_FILTER_REMOVE;
 
   if (result != GDK_FILTER_CONTINUE)